package com.beadhouse.usermanage.service;

import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.beadhouse.common.dto.QueryResult;
import com.beadhouse.entity.UserEntity;
import com.beadhouse.usermanage.ao.UserAo;
import com.beadhouse.usermanage.dto.NurListDto;
import com.beadhouse.usermanage.dto.UserModifyDto;


public interface UserManageService {
	@Transactional
	void addUser(UserAo ua,int currentId)throws Exception;
	@Transactional
	void deleteUser(int id,Map<String,Object>map)throws Exception;
	@Transactional
	void updateUser(int id,Map<String,Object> map)throws Exception;
	QueryResult<UserEntity> selectUser(String key,int pageNo)throws Exception;
	UserModifyDto selectOne(int id)throws Exception;
	QueryResult<NurListDto> selectNur(String key,int pageNo)throws Exception;
}
